import cellestial as cl
import scanpy as sc
from lets_plot import *
LetsPlot.setup_html()
data = sc.read("data/pbmc3k_pped.h5ad")3 umap
3.0.1 By default, the umap function will use “leiden” as the key
plot = cl.umap(data, key="leiden", axis_type="arrow", size=0.6, interactive=True, add_tooltips=["sample"])
plot3.1 Of course, it is possible to customize the plot
plot + scale_color_hue()3.2 You can also use a gene a key.
cl.umap(data, "NEAT1", color_high="#D2042D", add_tooltips=["leiden", "sample"])3.3 It is possible to use legends on the data
Note that this is only applicable to categorical data.
cl.dimensional(data, key="leiden", size=0.8, legend_ondata=True, ondata_size=15, ondata_fontface="plain")cl.versions()cellestial: 0.2.0
scanpy: 1.10.4
anndata: 0.11.0
polars: 1.12.0